import java.util.Random;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
//        int a=10;
//        //
//        System.out.println(a++);//10
//        System.out.println(++a);//11
//        System.out.println("Hello world!");
        Random rad=new Random();
        Scanner start=new Scanner(System.in);//1
        Scanner end=new Scanner(System.in);//42
        System.out.println("请输入第一个数");
        System.out.println("第二个数");
//        String res=rad.nextInt(start.nextInt(),end.nextInt())%2==0?"是":"不是";
//        System.out.println(res);//第一种写法
//        System.out.println(rad.nextInt(start.nextInt(),end.nextInt())%2==0?"是":"不是");//第二种写法

        if (((rad.nextInt(start.nextInt(),end.nextInt()))& 1) == 0) {
            System.out.println( "是");
        } else {
            System.out.println( "不是");
        }//第四种写法(5分)
//        String arr[]=new String[]{"a","b","c","d"};
//        for (int i = arr.length-1; i>=0 ; i--) {
//            System.out.println(arr[i]);
//        }
        //1.键盘录入星期数
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入星期");
        int weekDay = sc.nextInt();//(2分)
        switch (weekDay) {
            case 1, 2, 3, 4, 5 -> System.out.println("工作日");
            case 6, 7 -> System.out.println("休息日");
            default -> System.out.println("没有这个星期");
        }//(5分)



    }
}